<?php
/**
 * Firal CMS
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://firal.org/license
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to firal-dev@googlegroups.com so we can send you a copy immediately.
 *
 * @category   Firal
 * @package    Firal_Plugin
 * @subpackage Plugin
 * @copyright  Copyright (c) 2008 Firal Developers
 * @license    http://firal.org/license     New BSD License
 * @version    $Id: Abstract.php 11 2008-06-30 16:14:44Z pieterkokx $
 */

/**
 * @see Firal_Plugin
 */
require_once 'Firal/Plugin.php';

/**
 * Firal plugin
 *
 * @category   Firal
 * @package    Firal_Plugin
 * @subpackage Plugin
 * @copyright  Copyright (c) 2008 MaakSite.nl Productions. (http://productions.maaksite.nl/)
 * @license    http://www.opensource.org/licenses/bsd-license.php     New BSD License
 */
abstract class Firal_Plugin_Abstract
{
    
    /**
     * The plugin name
     * 
     * @var string
     */
    protected $_name = 'tst';
    
    /**
     * Register an event handler
     *
     * @param string $event
     * 
     * @return void
     */
    final protected function _registerEvent($event, $method)
    {
        Firal_Plugin::getInstance()->registerEvent($event, $this->_name, $method);
    }
    
    /**
     * Get the plugin name
     * 
     * @return string
     */
    public function getName()
    {
        return $this->_name;
    }
    
    /**
     * Initialize the plugin
     * 
     * @return void
     */
    //abstract public function init();
}